function changeColor() {
    var colors = ["#f00", "#0f0", "#00f", "#880", "#808", "#088", "yellow", "green", "blue" , "gray"];
    document.getElementById('blink').style.color = colors[parseInt(Math.random() * 10)];
    // $("#blink").css("color", colors[parseInt(Math.random() * 10)]); jquery写法
}
 
 
setInterval(function () {
    changeColor();
}, 1000)